﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Prontuario.Master" AutoEventWireup="true" CodeBehind="ManterPaciente.aspx.cs" Inherits="ProntuarioEletronico.EditPaciente" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="ajaxToolkit"  %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
     <style type="text/css">
        .auto-style1
        {
            width: 306px;
        }
        .auto-style2
        {
            width: 273px;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="FeaturedContent" runat="server">
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="MainContent" runat="server">
       <br/>   <br/>   <br/>   <br/>
     <ajaxToolkit:ToolkitScriptManager ID="ToolkitScriptManager1" runat="server" CombineScripts="False" EnableScriptGlobalization="True" EnableScriptLocalization="True"></ajaxToolkit:ToolkitScriptManager>
   <fieldset style="border-style: groove">
    
          <legend>Buscar Paciente</legend>
       <div class="formAlin">
       <br/>
       <asp:Label runat="server" Text="CPF:"/>
       <asp:TextBox runat="server" ID="txtBuscaPaciente" style="margin-left: 13px"></asp:TextBox>
       <asp:Button runat="server" ID="btBuscarPacinete"  style="margin-left: 8px" Text="Buscar" OnClick="btBuscarPacinete_Click"/>
      <br/>
          <br/>
           </div>
   </fieldset>
    
     <asp:Panel ID="EditarFormPaciente" runat="server" Visible="False">
    <fieldset style="border-style: groove">
        <legend>Cadastro do Paciente</legend>
        <div class="formAlin">
           
                <!--Campos do cadastro dos Pacientes -->
              

                <!--Nome -->
                <table>
                   <tr>
                        <td class="auto-style1">
                            <asp:Label runat="server" ID="label4" Text="Prontuário: "></asp:Label>
                        </td>
                        <td class="auto-style2">
                            <asp:TextBox runat="server" ID="idPaciente" Width="100px" ReadOnly="True"></asp:TextBox>

                        </td>
                        
                    </tr>
                     <tr>
                        <td class="auto-style1">
                            <asp:Label runat="server" ID="labelnomeMedico" Text="Nome: "></asp:Label>
                        </td>
                        <td class="auto-style2">
                            <asp:TextBox runat="server" ID="txtNomePaciente" Width="300px"></asp:TextBox>

                        </td>
                        
                    </tr>
                    <!--Sexo -->
                    <tr>
                        <td class="auto-style1">
                            <asp:Label runat="server" ID="label1" Text="Sexo: "></asp:Label>
                        </td>
                        <td class="auto-style2">
                            <asp:DropDownList ID="ListaSexoPaciente" runat="server">
                                <asp:ListItem>Masculino</asp:ListItem>
                                <asp:ListItem>Feminino</asp:ListItem>
                            </asp:DropDownList>

                        </td>
                       
                    </tr>
                    <!--Data de Nascimento -->
                    <tr>
                        <td class="auto-style1">
                            <asp:Label runat="server" ID="label2" Text="Data de Nasc.: "></asp:Label>
                        </td>
                        <td class="auto-style2">
                            <asp:TextBox ID="dataNasc" runat="server"></asp:TextBox>
                        </td>
                        <ajaxToolkit:CalendarExtender ID="dataNasc_CalendarExtender" runat="server" Enabled="True" TargetControlID="dataNasc">
                        </ajaxToolkit:CalendarExtender>

                       
                    </tr>
                    <!--Email -->
                    <tr>
                        <td class="auto-style1">
                            <asp:Label runat="server" ID="label3" Text="E-mail: "></asp:Label>
                        </td>
                        <td class="auto-style2">
                            <asp:TextBox runat="server" ID="txtemailPaciente" Width="300px"></asp:TextBox>
                        </td>
                       

                    </tr>
                     <!--Telefone -->
                    <tr>
                        <td class="auto-style1">
                            <asp:Label runat="server" ID="label10" Text="Telafone: "></asp:Label>
                        </td>
                        <td class="auto-style2">
                            <asp:TextBox runat="server" ID="txtTelefonePaciente" Width="140px"></asp:TextBox>
                        </td>
                       

                    </tr>
                    
                  
                    <!--RG -->
                    <tr>
                        <td>
                            <asp:Label runat="server" ID="label6" Text="RG: "></asp:Label>
                        </td>
                        <td class="auto-style2">
                            <asp:TextBox runat="server" ID="txtRGPaciente" Width="117px" Height="16px"></asp:TextBox>&nbsp;
                                  <asp:Label runat="server" ID="label15" Text="Org emissor: "></asp:Label>

                            <asp:TextBox runat="server" ID="txtorgaoemissorRGPaciente" Width="30px" Height="16px"></asp:TextBox>
                            <ajaxToolkit:MaskedEditExtender ID="txtRGPaciente_MaskedEditExtender" runat="server" Century="2000" CultureAMPMPlaceholder="" CultureCurrencySymbolPlaceholder="" CultureDateFormat="" CultureDatePlaceholder="" CultureDecimalPlaceholder="" CultureThousandsPlaceholder="" CultureTimePlaceholder="" Enabled="True" Mask="9.999.999" TargetControlID="txtRGPaciente">
                            </ajaxToolkit:MaskedEditExtender>
                        </td>
                        
                    </tr>
                    <!--CPF -->
                    <tr>
                        <td>
                            <asp:Label runat="server" ID="label7" Text="CPF: "></asp:Label>
                        </td>
                        <td class="auto-style2">
                            <asp:TextBox runat="server" ID="txtCPFPaciente" Width="137px" Height="16px"></asp:TextBox>

                            <ajaxToolkit:MaskedEditExtender ID="txtCPFPaciente_MaskedEditExtender" runat="server" Century="2000" CultureAMPMPlaceholder="" CultureCurrencySymbolPlaceholder="" CultureDateFormat="" CultureDatePlaceholder="" CultureDecimalPlaceholder="" CultureThousandsPlaceholder="" CultureTimePlaceholder="" Enabled="True" Mask="999.999.999-99" TargetControlID="txtCPFPaciente">
                            </ajaxToolkit:MaskedEditExtender>
                        </td>
                       
                    </tr>
                   <!-- Plano de saúde-->
                  
                    <tr>
                         
                        <td class="auto-style1">
                            <asp:Label runat="server" ID="label5" Text="Possui plano de saúde?: "></asp:Label>
                        </td>
                       <td class="auto-style2">
                            <asp:DropDownList ID="AlternativaPlano" runat="server" AutoPostBack="True" >
                                <asp:ListItem></asp:ListItem>
                                <asp:ListItem>Sim</asp:ListItem>
                                <asp:ListItem>Não</asp:ListItem>
                            </asp:DropDownList>
                    
                       </td>
                     <td>
                          <asp:Label ID="Label8" runat="server" Text="Nº Carteira" Visible="False" ></asp:Label>
                       <asp:TextBox runat="server" ID="txtnumCarteiraPaciente" Visible="False" ></asp:TextBox>
                         <asp:Label ID="Label9" runat="server" Text="Nome do Plano" Visible="False"></asp:Label>
                       <asp:TextBox runat="server" ID="txtNomePlanoPaciente" Visible="False" ></asp:TextBox>     
                     </td>
                
                    </tr>
                   <!--Filiação-->
                    <tr>
                        <td class="auto-style1">
                            <asp:Label runat="server" ID="label11" Text="Nome Mãe: "></asp:Label>
                        </td>
                        <td class="auto-style2">
                            <asp:TextBox runat="server" ID="txtNomeMaePaciente" Width="300px"></asp:TextBox>

                        </td>
                         </tr>
                    <tr>
                         <td class="auto-style1">
                            <asp:Label runat="server" ID="label12" Text="Nome Pai: "></asp:Label>
                        </td>
                        <td class="auto-style2">
                            <asp:TextBox runat="server" ID="txtNomePaiPaciente" Width="300px"></asp:TextBox>

                        </td>
                   </tr>
                   </table>
                  <br />
                    <br />
                 <asp:Button ID="btUpdatePaciente" runat="server" Text="Atualizar" Style="margin-left: 195px" OnClick="btUpdatePaciente_Click"  />
           
                 <asp:Button ID="btDeletePaciente" runat="server" Text="Deletar" OnClick="btDeletePaciente_Click"  />
           
        </div>
    </fieldset>
        </asp:Panel>
</asp:Content>
